<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/8/25
  Time: 下午 06:34
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="UTF-8">
    <title>超市订单管理系统</title>
    <link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/css/login.css"/>
</head>
<body>
<%
    Object error = request.getAttribute("error");
%>
<div class="container">
    <div class="card"></div>
    <div class="card">
        <div style="font-size: 30px;color: red;">${error}</div>
        <h1 class="title">用户登录</h1>

        <form class="loginForm" action="${pageContext.request.contextPath}/login.do" method="post" name="actionForm"
              id="actionForm">
            <div class="input-container">
                <input type="text" class="label" name="userCode" autocomplete="off" required/>
                <label >请输入用户编码</label>
                <div class="bar"></div>
            </div>
            <div class="input-container">
                <input type="password" class="label" name="userPassword" required/>
                <label >请输入密码</label>
                <div class="bar"></div>
            </div>
            <div class="button-container">
                <button><span>登录</span></button>
            </div>
        </form>
    </div>
</div>

<script src="${pageContext.request.contextPath }/js/jquery-1.8.3.min.js"></script>
<script src="${pageContext.request.contextPath }/js/loginscript.js"></script>

</body>
</html>
